import { Component, PropType } from "vue";
/*
 * @Descripttion:类定义接口
 * @LastEditors: xzh
 * @LastEditTime: 2023-08-19 15:30:33
 */
export interface object_Inf {
  [key: string]: any;
}

/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2023-08-17 20:35:53
 */
export enum timeTypeEnum {
  day = "day", //天
  week = "week", //周
  month = "month", //月
  season = "season", //季
  year = "year", //年
}

/**
 * @Author: xzh
 * @Descripttion:组件prop类型
 * @Param:
 * @param {*} T
 */
export const definePropType = <T>(val: any): PropType<T> => val;
/**
 * @Author: xzh
 * @Descripttion:组件类型定义
 * @Param:
 */
export const componentType = definePropType<string | Component>([
  String,
  Object,
  Function,
]);
